$(function (){
  initDocTreeMenu();
});

function initDocTreeMenu(){
    var options = {
        levels: 2,
        color : "#fff",
        backColor : "#333",
        onhoverColor : "#4b545f",
        selectedColor : "#fff",
        selectedBackColor : "#767d85",
        data: [{
            rootId : 0,
            id : 1,
            parentId : 0,
            text : "MappedStatement",
            url : "/pages/document/dms-doc.html",
        }],
        onNodeSelected : function (node,data) {
           $(".doc-content").load(data.url);
        }
    };
    $('.doc-menu').treeview(options);
}